Do the same check as when clicking.
}
static void
-gtk_check_button_real_activate (GtkCheckButton *check_button)
+gtk_check_button_real_activate (GtkCheckButton *self)
{
- gtk_check_button_set_active (check_button,
- !gtk_check_button_get_active (check_button));
+ GtkCheckButtonPrivate *priv = gtk_check_button_get_instance_private (self);
+
+ if (priv->active && (priv->group_prev || priv->group_next))
+ return;
+
+ gtk_check_button_set_active (self, !gtk_check_button_get_active (self));
}
static void